<?php
namespace app\admin\controller;


class Hook extends Base
{
    public function lists()
    {
        $this->_list("hook",['cms_id'=> $this->cms['id']]);
        return view();
    }

    public function edit()
    {
        $cate=model("cate");
        $this->assign("catelist",$cate->select());
        if($this->_edit("hook",['cms_id'=>$this->cms['id']])){
            $this->redirect("hook/lists");
        };
        return view();
    }
    public function delete()
    {
        $this->_delete("hook",['cms_id'=> $this->cms['id'],"id"=>input("get.id")],"hook/lists");
    }




}
